<?php

namespace app\admin\model;

use think\Model;
use traits\model\SoftDelete;

class Banner extends Model
{
    use SoftDelete;
    protected $autoWriteTimestamp = true;


    public function bannerItem()
    {
        return $this->hasMany('banner_item','banner_id','id');
    }
}
